<template>
  <div class="shop">
    <van-nav-bar
      title="购物车"
      left-arrow
      @click-left="onClickLeft"
    />
    <item></item>
    <van-submit-bar  :price="ShopTotal" button-text="提交订单" @submit="onSubmit" />
  </div>
</template>

<script>
import item from "./item"
import  {mapState} from 'vuex'
export default {
    components:{item},
    computed:{
    ...mapState(["ShopTotal"])
  },
    methods: {
    onClickLeft() {
      this.$router.go(-1)
    },
    onSubmit(){
      this.$router.push("/deal")
    }
}
    
};
</script>

<style>
</style>